home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / tutorials / custEducation / opengl2 / lib / Makefile < prev    next >
Encoding:
Makefile  |  1996-11-11  |  1.6 KB  |  78 lines

  1. #! smake
  2. #
  3. # Copyright 1996, Silicon Graphics, Inc.
  4. #  All Rights Reserved.
  5. #
  6. # This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  7. # the contents of this file may not be disclosed to third parties, copied or
  8. # duplicated in any form, in whole or in part, without the prior written
  9. # permission of Silicon Graphics, Inc.
  10. #
  11. # RESTRICTED RIGHTS LEGEND:
  12. # Use, duplication or disclosure by the Government is subject to restrictions
  13. # as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  14. # and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  15. # successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  16. # rights reserved under the Copyright Laws of the United States.
  17. #
  18.  
  19. #
  20. #   Makefile for compiling OpenGL Programming library
  21. #
  22. include /usr/include/make/commondefs
  23.  
  24. TARGETS = liboglprog.a
  25.  
  26. TOPDIR ?= ../
  27. HEADERDIR = ${TOPDIR}/include
  28.  
  29. CFILES = \
  30.     axes.c \
  31.     error.c \
  32.     font.c \
  33.     misc.c \
  34.     rgbReadImageFile.c \
  35.     rgbWriteImageFile.c \
  36.     shapes.c \
  37.     vect3d.c \
  38.     xform.c \
  39.     ${NULL}
  40.  
  41. LCINCS = -I${HEADERDIR}
  42. LCOPTS = -c
  43.  
  44. ARFLAGS = r
  45.  
  46. #
  47. #   To build a debug version of liboglprog.a, set OGLPROG_DEBUG to DEBUG in your
  48. #     environment
  49. OGLPROG_DEBUG ?= NO_DEBUG
  50.  
  51. #if ${OGLPROG_DEBUG} == "DEBUG" 
  52. OPTIMIZER =
  53. LCOPTS     += -g -D${OGLPROG_DEBUG}
  54. #endif
  55.  
  56. .SUFFIXES:
  57. .SUFFIXES: .c .o
  58.  
  59. .c.o :
  60.     ${CC} ${CFLAGS} $<
  61.  
  62. #
  63. #   Start Dependencies
  64. #
  65.  
  66. default install:    ${TARGETS}
  67.  
  68. include ${COMMONRULES}
  69.  
  70. new:     clobber
  71.     @ make -f Makefile 
  72.  
  73. ${TARGETS}:    ${OBJECTS}
  74.     @ echo 'NOTE : Debug Level is ' ${OGLPROG_DEBUG}
  75.     ${AR} ${ARFLAGS} $@ ${OBJECTS}
  76.  
  77.